<template>
  <h1>Dashboard</h1>
  <el-button type="primary" @click="handle">Primary</el-button>
  <el-button type="success">Success</el-button>
  <el-button type="info">Info</el-button>
  <el-button type="warning">Warning</el-button>
  <HelloWorld msg="From Vite + Vue 3 in Volar" />
</template>

<script setup>
const { proxy } = getCurrentInstance();
const handle = () => {
  proxy.$message({
    type: 'success',
    message: '操作成功',
  });
};
</script>

<style scoped></style>
